#ifndef DEBOUNCE_H
 #define DEBOUNCE_H

#include "main.h"

#define	XTAL		8e6		// 8MHz

typedef unsigned char	u8;
typedef signed short	s16;

#define REPEAT_MASK	(1<<KEY0^1<<KEY1^1<<KEY2^1<<KEY3)	// repeat: key1, key2
#define REPEAT_START	50		// after 500ms
#define REPEAT_NEXT	20		// every 200ms

//Funktionsprototyp
u8 get_key_press( u8 key_mask );
u8 get_key_rpt( u8 key_mask );
u8 get_key_short( u8 key_mask );
u8 get_key_long( u8 key_mask );


#endif
